#ifndef HTTP_MANAGE_H
#define HTTP_MANAGE_H
#include <map>
#include "http/connection.h"
//http管理类,单件类
class http_manage
{
public:
    static http_manage *get();

    //创建连接
    void create_connection(int client_id);
    //移除连接
    void remove_connection(int client_id);
    //获取连接对象
    http_connection *get_connection(int client_id);

private:
    explicit http_manage();

private:
    std::map<int, http_connection *> m_map_http_conn;
};
#endif